import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);
 export default new Vuex.Store({
	state:{
		msg:'message from vuex stores'
	},
	getters:{
		msg:(state)=>state.msg
	},
	actions:{
		changeMsg({commit},param){
			commit('changeMsg',param)
		},
	},
	mutations:{
		changeMsg:(state,param)=>{
			state.msg=param
		}
	}
 })